package com.retail.bbq.cola.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 品牌业务数据回传处理进度
 */
public enum OrderCallbackSyncStatusEnum {
    SYNC_WAIT(0, "待同步"),
    SYNC_SUCCESS(1, "同步成功"),
    SYNC_FAIL(2, "同步失败"),
    SYNC_NO(3, "解析数据异常，不同步"),

    ;

    @EnumValue
    @JsonValue
    private int status;

    private String desc;

    OrderCallbackSyncStatusEnum(int status, String desc) {
        this.status = status;
        this.desc = desc;
    }

    public Integer getStatus() {
        return this.status;
    }
}
